package com.smartcommunity.entity.village;

import com.smartcommunity.bean.entity.Village;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName: OrganizationVillage
 * @Description: 小区机构对象
 * @author: minsheng
 * @Date: 2019/1/3 11:08
 * @Company:
 * @version V1.5.0
 */
@Data
@ApiModel
public class OrganizationVillage implements Serializable {
    private static final long serialVersionUID = -1L;
    /**
     * 主键ID 自增
     */
    @ApiModelProperty(value="主键ID，自增",name="id")
    private Integer id;

    /**
     * 部门编号，全局唯一
     */
    @ApiModelProperty(value="行政区划代码",name="orgCode")
    private String orgCode;

    /**
     * 部门名称
     */
    @ApiModelProperty(value="行政区划名称",name="orgName")
    private String orgName;

    /**
     * 最高级组织机构ID默认为-1
     */
    @ApiModelProperty(value="父节点ID",name="parentId")
    private Integer parentId;

    /**
     *
     */
    @ApiModelProperty(value="父节点行政区划code",name="parentCode")
    private String parentCode;

    /**
     * 最高级组织机构名称默认为“根节点”
     */
    @ApiModelProperty(value="父节点名称",name="parentName")
    private String parentName;

    @ApiModelProperty(value="行政区划中心点",name="mapCenter")
    private String mapCenter;

    @ApiModelProperty(value="行政区划轮廓",name="geometry")
    private String geometry;

    @ApiModelProperty(value="行政区划拼音",name="pinyin")
    private String pinyin;

    @ApiModelProperty(value="查询列表序列号",name="rownum",hidden = true)
    private String rownum;

    @ApiModelProperty(value="入库时间",name="mrowTime")
    private String mrowTime;

    @ApiModelProperty(value="villageCount",name="villageCount",hidden = true)
    private int villageCount;

    @ApiModelProperty(value="子行政区划",name="children",hidden = true)
    private List<OrganizationVillage> children;

    @ApiModelProperty(value="叶子机构下小区数据",name="villageList",hidden = true)
    private List<Village> villageList;

    @ApiModelProperty(value="显示字段",name="isShow",hidden = true)
    private int isShow;

    private String lon;
    private String lat;

}
